package com.aidex.biz.service;

import com.aidex.biz.domain.Customer;
import com.aidex.common.core.service.BaseService;
import com.aidex.biz.domain.CustomerTag;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 客户标签信息Service接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-04-01
 */
public interface CustomerTagService extends BaseService<CustomerTag> {

    /**
     * 批量删除客户标签信息
     *
     * @param ids 需要删除的客户标签信息ID集合
     * @return 结果
     */
    public int deleteCustomerTagByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param customerTag 客户标签信息
     * @return 结果
     */
    public int findMaxSort(CustomerTag customerTag);

    /**
     * 批量保存标签
     *
     * @param customer
     * @return
     */
    @Transactional(readOnly = false)
    public boolean addBatch(Customer customer);

    @Transactional(readOnly = false)
    public int deleteByCustomerId(String customerId);
}
